package com.jdzy.student.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jdzy.model.student.pojos.Grade;
import com.jdzy.model.student.pojos.StudentScore;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface GradeMapper extends BaseMapper<Grade> {

    List<StudentScore> getScoresByStudentIds(List<String> studentIds);

    void updateZcScore(@Param("stuId") String stuId,  BigDecimal comprehensiveScore);

    void updateAllScore(@Param("stuId") String stuId,  BigDecimal totalScore);

    StudentScore getScoreByStudentId(String stuId1);
}
